package com.wang.interview.tests.hutooltest;

import cn.hutool.core.convert.Convert;
import cn.hutool.core.io.IoUtil;
import cn.hutool.core.lang.Console;
import cn.hutool.http.HttpStatus;
import cn.hutool.http.HttpUtil;
import org.junit.Test;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;

/**
 * @author: wang
 * @date: 2021/8/12 08:59
 * @description:
 */
public class T1 implements Serializable {
    @Test
    public void test01(){
        String a = "2020-1-1";
        Date date = Convert.toDate(a);
        System.out.println(date);
    }
    @Test
    public void test02() throws FileNotFoundException {
        FileOutputStream out = new FileOutputStream("E:\\AJava\\idea_code\\2021-07-12-interview-starer\\src\\main\\java\\com\\wang\\interview\\tests\\hutooltest\\123.data");
        IoUtil.writeObj(out,true,this);
    }
    @Test
    public void test03(){
        Console.log(123);
    }
    @Test
    public void test04(){
        String s = HttpUtil.post("www.baidu.com",new HashMap<String, Object>());
        Console.log(s);
    }
    @Test
    public void test05(){
        System.out.println(HttpStatus.HTTP_MOVED_TEMP);
    }
    @Test
    public void test06(){}
    @Test
    public void test07(){}
    @Test
    public void test08(){}
    @Test
    public void test09(){}
    @Test
    public void test10(){}
}
